﻿namespace Reader.Utils;

public static class LoginHelper
{
    public static bool IsLogin(this HttpContext self)
    {
        if (self.Session.GetString("user.username") != null)
        {
            Console.WriteLine(self.Session.GetString("user.username"));
            return true;
        }
        return false;
    }
}